﻿using System;
using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 视图
    /// </summary>
    [DataContract]
    public class ViewEntity : NamedEntity
    {
        /// <summary>
        /// 获取或设置控制器名
        /// </summary>
        /// <value>控制器名</value>
        [DataMember]
        public string ControllerName { get; set; }

        /// <summary>
        /// 获取或设置视图类型
        /// </summary>
        /// <value>视图类型</value>
        [DataMember]
        public ViewType Type { get; set; }

        /// <summary>
        /// 获取或设置视图内容
        /// </summary>
        /// <value>视图内容</value>
        [DataMember]
        public string ViewContent { get; set; }

        /// <summary>
        /// 获取或设置创建时间
        /// </summary>
        /// <value>创建时间</value>
        [DataMember]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 获取或设置修改时间
        /// </summary>
        /// <value>修改时间</value>
        [DataMember]
        public DateTime? Modified { get; set; }
    }
}
